<!doctype html>
<html class="no-js">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>信息查看页面</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
    <script src="assets/js/jquery.min.js"></script>
	<script src="assets/js/amazeui.js"></script>
	<script src="assets/js/memu.js"></script>
	<script src="assets/js/PublicFunction.js"></script>	
	<script src="assets/js/baiduTemplate.js"></script>

  <style type="text/css">
  
 .box{ border:1px solid #ff6187; width:20px; height:20px; margin:0 auto;
	-webkit-border-radius:50px;
	-moz-border-radius:50px;
	-o-border-radius:50px;
	border-radius:50px;
	text-align: center;
	line-height: 16px;
	background-color: #ff6187;
	color: #feeef1;
	
} 

.msg_title{
	color: black;
	font-weight: bold;
	
}	   
	 
	
	

  </style>
</head>
<body>



<div id="parent" >
<div data-am-sticky id="header">
	<header data-am-widget="header" class="am-header am-header-default">
		<div class="am-header-left am-header-nav">
			<a  href="javascript:backA()" class="">
				
				<i class="am-header-icon am-icon-chevron-left"></i>
			</a>
		</div>
		<h1 class="am-header-title" style="font-size:14px;">
			信息
		</h1>
		<div class="am-header-right am-header-nav">
			<a href="javascript:menu()" class="">
				<i class="am-header-icon am-icon-list-ul"></i>
			</a>
			
		</div>
	<!-- 遮罩-->
	<div class="am-modal am-modal-no-btn" tabindex="-1" id="memu-modal">
  
	</div>
	</header>
	
	<!--菜单-->
	<!-- <div style="width:100%;background-color:#378dcc; display:none; z-index:9999;  position:absolute;" id = "memu" title="0" data-am-sticky>
			<table class="am-table" >
				<tbody>
					<tr>
						<td align="center"><img src="assets/img/msg.png" /></td>
						<td align="center"><img src="assets/img/mydocu.png" /></td>
						<td align="center"><img src="assets/img/arrive.png" /></td>
						<td align="center"><img src="assets/img/newdocu.png" /></td>
					</tr>
					<tr>
						<td align="center" style="border-top:0px;"><img src="assets/img/generalize.png"/></td>
						<td  align="center" style="border-top:0px;"><img src="assets/img/promotion.png" /></td>
						
						<td align="center" style="border-top:0px;"><img src="assets/img/suggest.png" /></td>
					</tr>
				</tbody>
			</table>
		</div> -->
</div>
	

	
	
                  
<div data-am-widget="list_news" class="am-list-news am-list-news-default">
	<div class="am-list-news-bd">
		<ul class="am-list">
		
		<li class="Pa_2 am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left ">
		<a href="javascript:gotoMsg('ArriveMsg');" >
			<div class="am-u-sm-4 am-list-thumb" >
				<div style="width: 80px; height: 80px;background-image:url('assets/img/msg_d.png');
				  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
   				-moz-background-size:100% 100%;
  					 background-size:100% 100%;
				 ">
					
				</div>
					
			</div>
			<div class=" am-u-sm-7 am-list-main">
				<h3 class="am-list-item-hd">
					<a href="javascript:gotoMsg('ArriveMsg');"  class="msg_title">到货信息</a>
				</h3>
				<div class="am-list-item-text" id = "Arr_msgcontent" style="  white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;  ">
					无
				</div>
				<div class="am-list-item-text" id = "Arr_CreateDate" >2015-09-12</div>
			</div>
			<div class=" am-u-sm-1 am-list-main" style="padding-top: 26px; padding-left:5px; "  >
				<div class="box" id = "Arr_msgcount"  >
						0
				</div>
			</div>
		</a>
		</li>
		
		<li class="Pa_2_0 am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left " >
			<div class="am-u-sm-4 am-list-thumb" >
				<div style="width: 80px; height: 80px;background-image:url('assets/img/msg_t.png');
				  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
   				-moz-background-size:100% 100%;
  					 background-size:100% 100%;
				 ">
					
				</div>
				
			</div>
			
			<div class=" am-u-sm-7 am-list-main">
			<h3 class="am-list-item-hd">
				<a href="javascript:gotoMsg('PopMsg');"  class="msg_title">推广信息</a>
			</h3>
			<div class="am-list-item-text" id = "Pop_msgcontent"  style="  white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;  ">
				无</div>
				<div class="am-list-item-text" id = "Pop_CreateDate"></div>
			</div>
		
			<div class=" am-u-sm-1 am-list-main" style="padding-top: 26px;	padding-left:5px; "  >
				<div class="box" id = "Pop_msgcount">
						0
				</div>
			</div>
		</li>
		
		<li class="Pa_2_0 am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left " >
			<div class="am-u-sm-4 am-list-thumb" >
				<div style="width: 80px; height: 80px;background-image:url('assets/img/msg_c.png');
				  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
   				-moz-background-size:100% 100%;
  					 background-size:100% 100%;">
					
				</div>
					
			</div>
			
			<div class=" am-u-sm-7 am-list-main">
			<h3 class="am-list-item-hd">
				<a href="javascript:gotoMsg('ProMsg');" class="msg_title">促销信息</a>
			</h3>
			<div class="am-list-item-text" id = "Pro_msgcontent"   style="  white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;  ">
			无</div>
				<div class="am-list-item-text" id = "Pro_CreateDate"></div>
			</div>
		
			<div class=" am-u-sm-1 am-list-main" style="padding-top: 26px;	padding-left:5px; "  >
				<div class="box"  id = "Pro_msgcount">
						0
				</div>
			</div>
		</li>
		
		<li class="Pa_2_1 am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left " >
			<div class="am-u-sm-4 am-list-thumb" >
				<div style="width: 80px; height: 80px;background-image:url('assets/img/msg_x.png');
				  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
   				-moz-background-size:100% 100%;
  					 background-size:100% 100%;">
					
				</div>
					
				
			</div>
			
			<div class=" am-u-sm-7 am-list-main">
			<h3 class="am-list-item-hd">
				<a href="javascript:checkD();" class="msg_title">需求信息</a>
			</h3>
			<div class="am-list-item-text" style="  white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;  ">
			无</div>
				<div class="am-list-item-text"></div>
			</div>
		
			<div class=" am-u-sm-1 am-list-main" style="padding-top: 26px;	padding-left:5px; "  >
				<div class="box">
						0
				</div>
			</div>
		</li>
		<li class="Pa_2_1_0 am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left " id="test" >
			<div class="am-u-sm-4 am-list-thumb" >
				<div style="width: 80px; height: 80px;background-image:url('assets/img/msg_xt.png');
				  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
   				-moz-background-size:100% 100%;
  					 background-size:100% 100%;">
					
				</div>
					
				
			</div>
			
			<div class=" am-u-sm-7 am-list-main">
			<h3 class="am-list-item-hd">
				<a href="javascript:gotoMsg('Sysmsg');" class="msg_title" >系统信息</a>
			</h3>
			<div class="am-list-item-text" id = "sys_msgcontent" style="  white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;  ">
			无</div>
				<div class="am-list-item-text" id="sys_CreateDate"></div>
			</div>
		
			<div class=" am-u-sm-1 am-list-main" style="padding-top: 26px;	padding-left:5px; "  >
				<div class="box" id="sys_msgcount">
						0
				</div>
			</div>
		</li>
     
		</ul>
	</div>
</div>

 
</div>
<!-- 保存系统信息json -->
<input type="hidden"  id = "sys_msg_json" value ="">
<input type="hidden"  id = "Arr_msg_json" value ="">
<input type="hidden"  id = "Pro_msg_json" value ="">
<input type="hidden"  id = "Pop_msg_json" value ="">

<script type="text/javascript">
function init(w,h) {
//	actuator();
	//生成menu
	generateMenu();
	<!--添加系统信息-->
	 var json = MsgFunction.sysmsgGather();
	 
	 if(json!=null&&json.length>0){
		 $("#sys_msg_json").attr("value",json);
		
		 var data = strToJson(json);
	
		 $("#sys_msgcontent").html(data[0].content);
		 
		 //显示未读总数
		 var msgcount = 0;
		 for(var i = 0 ;i< data.length ;i++){
			var isread = data[i].isread+"";
			 if(isread =="0"){
				 msgcount = msgcount+1; 
			 }
		 }
		 $("#sys_msgcount").html(msgcount);
		 
		 $("#sys_CreateDate").html(data[0].CreateDate);
	
		
	 }
	 
	 
		<!---到货信息--->
		
		json = MsgFunction.getArriveMsgby();
		 if(json!=null&&json.length>0){
			$("#Arr_msg_json").attr("value",json);
			var data = strToJson(json);
			
		
			 
			 //显示未读总数
			 var msgcount = 0;
			 for(var i = 0 ;i< data.length ;i++){
				var isread = data[i].isread+"";
				 if(isread =="0"){
					 msgcount = msgcount+1; 
				 }
			 }
			 $("#Arr_msgcount").html(msgcount);
				$("#Arr_msgcontent").html("您有"+msgcount+"消息未读");
			 
			 $("#Arr_CreateDate").html(data[0].CreateDate);
		 }
		 
			<!---推广信息--->
			
			json = MsgFunction.getPopularize();
			 if(json!=null&&json.length>0){
				$("#Pop_msg_json").attr("value",json);
				var data = strToJson(json);
				$("#Pop_msgcontent").html(data[0].content);
				 
				 //显示未读总数
				 var msgcount = 0;
				 for(var i = 0 ;i< data.length ;i++){
					var isread = data[i].isread+"";
					 if(isread =="0"){
						 msgcount = msgcount+1; 
					 }
				 }
				 $("#Pop_msgcount").html(msgcount);
				 
				 $("#Pop_CreateDate").html(data[0].CreateDate);
			 }
			 
			 
			 
			 <!---促销信息--->
				
				json = MsgFunction.getPromotion();
				 if(json!=null&&json.length>0){
					$("#Pro_msg_json").attr("value",json);
					var data = strToJson(json);
					$("#Pro_msgcontent").html(data[0].content);
					 
					 //显示未读总数
					 var msgcount = 0;
					 for(var i = 0 ;i< data.length ;i++){
						var isread = data[i].isread+"";
						 if(isread =="0"){
							 msgcount = msgcount+1; 
						 }
					 }
					 $("#Pro_msgcount").html(msgcount);
					 $("#Arr_msgcontent").html("您有"+msgcount+"消息未读");
					 $("#Pro_CreateDate").html(data[0].CreateDate);
				 }
		 
		 
		 
};


	 function chackMsgInfo(){

		  MsgFunction.gotoMsg(type);
		 
	 };
	
	 





  
 
 
  /** 查看信息**/
  function gotoMsg(type){

	  var json = null;
	  if(type == "Sysmsg"){
		  json = $("#sys_msg_json").val();
	  }
	  if(type=="ArriveMsg"){
		  json = $("#Arr_msg_json").val();
	  }
	  
	  if(type=="PopMsg"){
		  json = $("#Pop_msg_json").val();
	  }
	  
	  if(type=="ProMsg"){
		  json = $("#Pro_msg_json").val();
	  }
	  MsgFunction.gotoMsg(type,json);
  };
  
 

</script>
</body>
</html>
	